var max=0;function AsylumNavLink(parentId,linkId,order,href,linkText,target,width)
{this.linkId=linkId;this.parentId=parentId;this.order=order;this.href=href;this.linkText=linkText;this.target=target;this.width=width;};function AsylumNav(contId,layout,offset)
{this.menuCont=document.getElementById(contId);this.layout=layout;this.offset=(typeof offset=='undefined'?'Right':offset);this.menuItems=new Object();this.clickUnderCreated=false;};AsylumNav.prototype.AddLink=function(parentId,linkId,order,href,linkText,target,width)
{if(typeof this.menuItems[parentId]=='undefined')
{this.menuItems[parentId]=new Object();}
if(typeof width=="undefined")width=false;this.menuItems[parentId][linkId]=new AsylumNavLink(parentId,linkId,order,href,linkText,target,width);if(order>max){max=order;}};AsylumNav.prototype.CreateLevel=function(levelId,idPrefix)
{obj=this;div=document.createElement('div');div.id=idPrefix+levelId;div.levelId=levelId;div.idPrefix=idPrefix;div.className='levelDiv';div.onmouseout=function(e){obj.HideLevel(e);};div.subLevels=new Object();if(levelId!='0')
{div.style.visibility='hidden';div.className+=' subLevel';div.style.position='absolute';}
else
{div.className+=' topLevel';}
if(this.layout=='Horizontal')
{div.style.position='absolute';}
div.style.zIndex=10;if(this.menuCont){this.menuCont.appendChild(div);}
for(i=0;i<=max;i++){for(linkId in this.menuItems[levelId]){if(this.menuItems[levelId][linkId].order==i){linkDiv=document.createElement('div');linkDiv.id='asylumNavLinkDiv'+linkId;linkDiv.linkId=linkId;linkDiv.levelId=levelId;linkDiv.className='linkDiv';if(levelId=="0"){linkDiv.className+=" topLevel";if(this.menuItems[levelId][linkId].width){linkDiv.style.width=this.menuItems[levelId][linkId].width+"px";}}
div.appendChild(linkDiv);navLink=this.menuItems[levelId][linkId];a=document.createElement('a');a.id='asylumNavLink'+linkId;a.linkType='navMenu';a.linkId=linkId;a.levelId=navLink.parentId;a.parentId=navLink.parentId;if(navLink.href==''||navLink.href=='#')
{a.href='#';a.target='';a.style.cursor='default';}
else
{a.href=navLink.href;a.target=navLink.target;}
if(this.layout=='Vertical')
{a.innerHTML=navLink.linkText;}
else
{a.innerHTML=navLink.linkText.split(' ').join('&nbsp;');}
a.onmouseover=function(){obj.ShowLevel(this);};linkDiv.appendChild(a);if(linkId==pageId)
{a.className='activeLink';linkDiv.className+=' activeLink';topLink=this.GetTopLevelLink(navLink);if(typeof this.menuItems[topLink.linkId]!='undefined'&&navLink.levelId!='0')
{try{document.getElementById('asylumNavLink'+topLink.linkId).className+=' activeLink';document.getElementById('asylumNavLinkDiv'+topLink.linkId).className+=' activeLink';}catch(e){}}
if(document.getElementById("clickUnder")!=null)
{this.CreateClickUnder(topLink,true);}}
else
{}
if(typeof this.menuItems[linkId]!='undefined')
{div.subLevels[linkId]=true;}}}}
return div;};AsylumNav.prototype.Construct=function()
{if(this.menuCont==null){return;}
var obj=this;for(levelId in this.menuItems)
{this.CreateLevel(levelId,'asylumNavLevel');}
if(this.layout=='Vertical')
{if(typeof document.getElementById('tplMainSectors')!=null)
{ms=document.getElementById('tplMainSectors');ms.style.height=ms.offsetHeight;}}
else
{this.menuCont.style.height=document.getElementById('asylumNavLevel0').offsetHeight+'px';}
this.CreateBreadCrumbs();};AsylumNav.prototype.CreateClickUnder=function(navLink,active)
{if(typeof doneClickUnder=="undefined"){doneClickUnder=true;}else{return;}
if(document.getElementById("clickUnder")==null)return;obj=this;var linkId;if(this.layout=='Vertical')
{clickDiv=document.createElement('div');clickDiv.id="clickUnder";document.getElementById("clickUnder").appendChild(clickDiv);linkDiv=document.getElementById('asylumNavLinkDiv'+navLink.linkId);linkDiv.appendChild(clickDiv);}
else
{clickDiv=document.getElementById("clickUnder");}
var linkCount=0;for(linkId in this.menuItems[navLink.linkId])
{linkCount++;clickLinkDiv=document.createElement('div');clickLinkDiv.className='clickLinkDiv';clickLink=this.menuItems[navLink.linkId][linkId];txt=document.createTextNode(' ');clickDiv.appendChild(txt);a=document.createElement('a');a.id='asylumNavClickLink'+clickLink.linkId;a.className='clickLink';a.linkType='clickLink';a.linkId=linkId;a.levelId=clickLink.parentId;a.parentId=clickLink.parentId;if(clickLink.href==''||clickLink.href=='#'){a.href='#';a.target='';a.style.cursor='default';}else{a.href=clickLink.href;a.target=clickLink.target;}
if(this.layout=="Vertical"){a.innerHTML=clickLink.linkText;}else if(this.layout=="Horizontal-SubMenu"){if(clickLink.linkText.substring(0,1)==" "){a.innerHTML=clickLink.linkText.split(" ").join("&nbsp;");}else{a.innerHTML=clickLink.linkText;}}else{a.innerHTML=clickLink.linkText.split(" ").join("&nbsp;");}
a.onmouseover=function(){obj.HideAllLevels();obj.ShowLevel(this);};a.onmouseout=function(e){obj.HideLevel(e);};clickLinkDiv.appendChild(a);if(linkId==pageId)
{a.className='activeLink';clickLinkDiv.className+=' activeLink';}
clickDiv.appendChild(clickLinkDiv);txt=document.createTextNode(' ');clickDiv.appendChild(txt);}
if(linkCount==0||active==false)
{clickDiv.className='inactiveClickUnder';}
else
{clickDiv.className='activeClickUnder';}};AsylumNav.prototype.GetTopLevelLink=function(navLink)
{if(navLink.parentId=='0')
{return(navLink);}
while(1==1)
{navLink=this.GetParentLink(navLink);if(typeof navLink.parentId!='undefined')
{if(navLink.parentId=='0')
{break;}}}
return(navLink);};AsylumNav.prototype.GetParentLink=function(navLink)
{var levelId;var linkId;for(levelId in this.menuItems)
{for(linkId in this.menuItems[levelId])
{parNavLink=this.menuItems[levelId][linkId];if(parNavLink.linkId==navLink.parentId)
{return(parNavLink);}}}};AsylumNav.prototype.GetXPos=function(obj)
{var curleft=0;if(obj.offsetParent)
{while(obj.offsetParent&&obj.id!='navMenuCont')
{curleft+=obj.offsetLeft;obj=obj.offsetParent;}}
else if(obj.x)
curleft+=obj.x;return curleft;};AsylumNav.prototype.GetYPos=function(obj)
{var curtop=0;if(obj.offsetParent)
{while(obj.offsetParent&&obj.id!='navMenuCont')
{curtop+=obj.offsetTop;obj=obj.offsetParent;}}
else if(obj.y)
curtop+=obj.y;return curtop;};AsylumNav.prototype.ShowLevel=function(el)
{levelId=el.linkId;this.currentLevelId=levelId;window.clearTimeout(this.timeoutId);this.HideSubLevels(el.levelId);if(typeof this.menuItems[levelId]=='undefined')
{return;}
if(el.linkType=='clickLink')
{eP=document.getElementById('asylumNavClickLink'+el.linkId);eL=document.getElementById('asylumNavLevel'+levelId);SwapClass(eL,'subLevel','clickUnderSubLevel');}
else
{eP=document.getElementById('asylumNavLink'+levelId);eL=document.getElementById('asylumNavLevel'+levelId);SwapClass(eL,'clickUnderSubLevel','subLevel');}
if(eP.parentId=='0')
{switch(this.offset)
{case'Right':offsetX=(eP.offsetWidth);offsetY=0;break;case'Left':offsetX=(-eL.offsetWidth);offsetY=0;break;case'Bottom':offsetX=0;offsetY=eP.offsetHeight;eL.style.minWidth=eP.offsetWidth;break;}}
else
{switch(this.offset)
{case'Left':offsetX=(-eL.offsetWidth);offsetY=0;break;default:offsetX=(eP.offsetWidth);offsetY=0;break;}}
pX=this.GetXPos(eP);pY=this.GetYPos(eP);lX=pX+offsetX;lY=pY+offsetY;eL.style.position='absolute';$(eL).css({left:lX,top:lY});eL.style.visibility='visible';};AsylumNav.prototype.GetLevelWidth=function(levelId)
{maxWidth=0;for(linkId in this.menuItems[levelId])
{a=document.getElementById('asylumNavLink'+linkId);thisWidth=a.offsetWidth;if(thisWidth>maxWidth)
{maxWidth=thisWidth;}}
return(maxWidth);};AsylumNav.prototype.HideSubLevels=function(levelId,omitLevelId)
{if(typeof omitLevelId=='undefined')
{omitLevelId='0';}
eL=document.getElementById('asylumNavLevel'+levelId);for(levelId in eL.subLevels)
{this.HideSubLevels(levelId);if(levelId!=omitLevelId)
{eL=document.getElementById('asylumNavLevel'+levelId);eL.style.visibility='hidden';}}};AsylumNav.prototype.HideLevel=function(e)
{window.clearTimeout(this.timeoutId);if(!e)e=window.event;var el=(e.relatedTarget)?e.relatedTarget:e.toElement;var obj=this;var funct=function(){obj._HideLevel(el);};this.timeoutId=window.setTimeout(funct,1000);};AsylumNav.prototype._HideLevel=function(el)
{if(!el||el.id.substr(0,9)!='asylumNav'||(el.id.substr(0,9)=='asylumNav'&&el.style.visibility=='hidden'))
{this.HideAllLevels();}};AsylumNav.prototype.HideAllLevels=function()
{for(levelId in this.menuItems)
{if(levelId!='0')
{eL=document.getElementById('asylumNavLevel'+levelId);if(eL!=null)eL.style.visibility='hidden';}}};AsylumNav.prototype.CreateBreadCrumbs=function()
{if(document.getElementById("breadCrumbs")!=null)
{crumbsCont=document.getElementById("breadCrumbs");crumbsCont.style.display='none';crumbs='';homeLink='';for(levelId in this.menuItems)
{for(linkId in this.menuItems[levelId])
{navLink=this.menuItems[levelId][linkId];if(homeLink=='')
{homeLink='<a href="'+navLink.href+'" target="'+navLink.target+'">'
+navLink.linkText+'</a> &gt; ';}
if(linkId==pageId)
{i=0;parNavLink=this.GetParentLink(navLink);while(typeof parNavLink=='object')
{i++;crumbs='<a href="'+parNavLink.href+'" target="'+parNavLink.target+'">'
+parNavLink.linkText+'</a> &gt; '+crumbs;parNavLink=this.GetParentLink(parNavLink);}
if(i>1)
{crumbsCont.style.display='block';crumbsCont.innerHTML=homeLink+crumbs+'<span class="activeCrumb">'+navLink.linkText+'</span>';}
return(true);}}}}};function RemoveClass(el,className)
{var replaceName=(el.className.match(' '+className)?' '+className:className);el.className=el.className.replace(replaceName,'');};function AddClass(el,className)
{RemoveClass(el,className);el.className+=' '+className;};function SwapClass(el,removeClassName,addClassName)
{RemoveClass(el,removeClassName);AddClass(el,addClassName);};;$(function() {for (var i in tasks) {window.setTimeout(tasks[i], 0);}});function initMenu(){};$(function(){$("#navMenu").navmenu({pageInfo:{"a293565":{"P":0,"ID":364598,"C":293565,"O":0,"U":"http:\/\/www.masterresearchco.com\/","N":"Inicio","T":"_top","R":"","RT":"_blank"},"a293566":{"P":293565,"ID":302074,"C":293566,"O":"1","U":"http:\/\/www.masterresearchco.com\/page302074.html","N":"Nuestra Empresa","T":"_top","R":"","RT":"_blank"},"a373978":{"P":293566,"ID":373979,"C":373978,"O":"1","U":"http:\/\/www.masterresearchco.com\/nuestra-historia.html","N":"Nuestra historia","T":"_top","R":"","RT":"_blank"},"a373985":{"P":293566,"ID":373986,"C":373985,"O":"3","U":"http:\/\/www.masterresearchco.com\/certificaciones.html","N":"Certificaciones","T":"_top","R":"","RT":"_blank"},"a293567":{"P":293565,"ID":364593,"C":293567,"O":"2","U":"http:\/\/www.masterresearchco.com\/solucionesdenegocio.html","N":"Soluciones de negocio","T":"_top","R":"","RT":"_blank"},"a373987":{"P":293567,"ID":373988,"C":373987,"O":"1","U":"http:\/\/www.masterresearchco.com\/inteligencia-competitiva.html","N":"Inteligencia Competitiva","T":"_top","R":"","RT":"_blank"},"a373991":{"P":373987,"ID":373992,"C":373991,"O":"1","U":"http:\/\/www.masterresearchco.com\/solucionesindustriafinanciera.html","N":"Soluciones para la Industria Financiera","T":"_top","R":"","RT":"_blank"},"a600389":{"P":373991,"ID":600390,"C":600389,"O":"1","U":"http:\/\/www.masterresearchco.com\/benchmarkingfinanciero.html","N":"Benchmarking","T":"_top","R":"","RT":"_blank"},"a600395":{"P":373991,"ID":600396,"C":600395,"O":"2","U":"http:\/\/www.masterresearchco.com\/usos&habitosfinanciero.html","N":"U&H  Banking Study ","T":"_top","R":"","RT":"_blank"},"a600401":{"P":373991,"ID":600414,"C":600401,"O":"3","U":"http:\/\/www.masterresearchco.com\/satisfaccionfinanciero.html","N":"Customer Satisfaction","T":"_top","R":"","RT":"_blank"},"a600419":{"P":373991,"ID":600432,"C":600419,"O":"4","U":"http:\/\/www.masterresearchco.com\/mapafinanciero.html","N":"Banking Map","T":"_top","R":"","RT":"_blank"},"a600437":{"P":373991,"ID":600438,"C":600437,"O":"5","U":"http:\/\/www.masterresearchco.com\/keyplayersfinanciero.html","N":"Key Players Report","T":"_top","R":"","RT":"_blank"},"a600443":{"P":373991,"ID":600444,"C":600443,"O":"6","U":"http:\/\/www.masterresearchco.com\/competenciafinanciero.html","N":"Competitive Monitor","T":"_top","R":"","RT":"_blank"},"a373993":{"P":373987,"ID":373994,"C":373993,"O":"2","U":"http:\/\/www.masterresearchco.com\/solucionessectoreducativo.html","N":"Soluciones para el Sector Educativo","T":"_top","R":"","RT":"_blank"},"a603776":{"P":373993,"ID":603777,"C":603776,"O":"1","U":"http:\/\/www.masterresearchco.com\/educationmarket.html","N":"Education Market","T":"_top","R":"","RT":"_blank"},"a603778":{"P":373993,"ID":603779,"C":603778,"O":"2","U":"http:\/\/www.masterresearchco.com\/uheducation.html","N":"U&H Education","T":"_top","R":"","RT":"_blank"},"a603780":{"P":373993,"ID":603781,"C":603780,"O":"3","U":"http:\/\/www.masterresearchco.com\/customersatisfactioneducativo.html","N":"Customer Satisfaction","T":"_top","R":"","RT":"_blank"},"a604870":{"P":373993,"ID":604871,"C":604870,"O":"4","U":"http:\/\/www.masterresearchco.com\/benchmarkingeducacion.html","N":"Benchmarking","T":"_top","R":"","RT":"_blank"},"a604872":{"P":373993,"ID":604873,"C":604872,"O":"5","U":"http:\/\/www.masterresearchco.com\/keyplayerseducacion.html","N":"Key Players Report","T":"_top","R":"","RT":"_blank"},"a604878":{"P":373993,"ID":604879,"C":604878,"O":"6","U":"http:\/\/www.masterresearchco.com\/educationtrends.html","N":"Education Trends","T":"_top","R":"","RT":"_blank"},"a373995":{"P":373987,"ID":373996,"C":373995,"O":"3","U":"http:\/\/www.masterresearchco.com\/solucionestelecom.html","N":"Soluciones para Telecomunicaciones","T":"_top","R":"","RT":"_blank"},"a608953":{"P":373995,"ID":608959,"C":608953,"O":"1","U":"http:\/\/www.masterresearchco.com\/benchtelecom.html","N":"Benchmarking","T":"_top","R":"","RT":"_blank"},"a608954":{"P":373995,"ID":608965,"C":608954,"O":"2","U":"http:\/\/www.masterresearchco.com\/usosyhabitostelecom.html","N":"U&H Telecom Study","T":"_top","R":"","RT":"_blank"},"a608955":{"P":373995,"ID":608971,"C":608955,"O":"3","U":"http:\/\/www.masterresearchco.com\/customersatisfactiontelecom.html","N":"Customer Satisfaction","T":"_top","R":"","RT":"_blank"},"a608956":{"P":373995,"ID":608995,"C":608956,"O":"4","U":"http:\/\/www.masterresearchco.com\/keyplayerstelecom.html","N":"Key Players Report","T":"_top","R":"","RT":"_blank"},"a608957":{"P":373995,"ID":609015,"C":608957,"O":"5","U":"http:\/\/www.masterresearchco.com\/cometitivemonitortelecom.html","N":"Competitive Monitor","T":"_top","R":"","RT":"_blank"},"a374001":{"P":373987,"ID":374002,"C":374001,"O":"4","U":"http:\/\/www.masterresearchco.com\/estudios-multicliente.html","N":"Estudios multicliente","T":"_top","R":"","RT":"_blank"},"a374003":{"P":374001,"ID":374004,"C":374003,"O":"1","U":"http:\/\/www.masterresearchco.com\/monitor-hipotecario.html","N":"Home Monitor","T":"_top","R":"","RT":"_blank"},"a374005":{"P":374001,"ID":374006,"C":374005,"O":"2","U":"http:\/\/www.masterresearchco.com\/tdc-monitor.html","N":"TDC Panel","T":"_top","R":"","RT":"_blank"},"a534838":{"P":374001,"ID":534844,"C":534838,"O":"3","U":"http:\/\/www.masterresearchco.com\/bpmonitor.html","N":"BP Monitor","T":"_top","R":"","RT":"_blank"},"a534856":{"P":374001,"ID":534858,"C":534856,"O":"4","U":"http:\/\/www.masterresearchco.com\/Edubenchmark.html","N":"Edu-benchmark","T":"_top","R":"","RT":"_blank"},"a588576":{"P":374001,"ID":588588,"C":588576,"O":"5","U":"http:\/\/www.masterresearchco.com\/telecommonitor.html","N":"Telecom Monitor","T":"_top","R":"","RT":"_blank"},"a588582":{"P":374001,"ID":588593,"C":588582,"O":"6","U":"http:\/\/www.masterresearchco.com\/inteligencia-competitiva-ventajas.html","N":"M-Banking Monitor","T":"_top","R":"","RT":"_blank"},"a373989":{"P":293567,"ID":373990,"C":373989,"O":"2","U":"http:\/\/www.masterresearchco.com\/invmercados.html","N":"Investigaci&oacute;n de Mercados","T":"_top","R":"","RT":"_blank"},"a374007":{"P":373989,"ID":374008,"C":374007,"O":"1","U":"http:\/\/www.masterresearchco.com\/analisis-de-penetracion.html","N":"Penetraci\u00f3n de mercado","T":"_top","R":"","RT":"_blank"},"a374009":{"P":373989,"ID":374010,"C":374009,"O":"2","U":"http:\/\/www.masterresearchco.com\/comportamiento-del-consumidor.html","N":"Comportamiento de consumidor","T":"_top","R":"","RT":"_blank"},"a374012":{"P":373989,"ID":374013,"C":374012,"O":"3","U":"http:\/\/www.masterresearchco.com\/estudios-de-segmentacion.html","N":"Segmentaci&oacute;n ","T":"_top","R":"","RT":"_blank"},"a375249":{"P":373989,"ID":375250,"C":375249,"O":"4","U":"http:\/\/www.masterresearchco.com\/perfil.html","N":"Perfil del consumidor","T":"_top","R":"","RT":"_blank"},"a375251":{"P":373989,"ID":375252,"C":375251,"O":"5","U":"http:\/\/www.masterresearchco.com\/uh.html","N":"U &amp; H","T":"_top","R":"","RT":"_blank"},"a375255":{"P":373989,"ID":375256,"C":375255,"O":"7","U":"http:\/\/www.masterresearchco.com\/factibilidad-del-mercado.html","N":"Factibilidad ","T":"_top","R":"","RT":"_blank"},"a375257":{"P":373989,"ID":375258,"C":375257,"O":"8","U":"http:\/\/www.masterresearchco.com\/prueba-de-concepto.html","N":"Prueba de concepto y producto","T":"_top","R":"","RT":"_blank"},"a375271":{"P":373989,"ID":375272,"C":375271,"O":"14","U":"http:\/\/www.masterresearchco.com\/customersatisfaction.html","N":"Satisfacci&oacute;n del Consumidor","T":"_top","R":"","RT":"_blank"},"a583531":{"P":293565,"ID":583804,"C":583531,"O":"3","U":"http:\/\/www.masterresearchco.com\/sectores.html","N":"Industrias","T":"_top","R":"","RT":"_blank"},"a583559":{"P":583531,"ID":620765,"C":583559,"O":"1","U":"http:\/\/www.masterresearchco.com\/estudiosindustriafinanciera.html","N":"Industria Financiera","T":"_top","R":"","RT":"_blank"},"a583805":{"P":583531,"ID":583806,"C":583805,"O":"2","U":"http:\/\/www.masterresearchco.com\/industria-de-la-construccion.html","N":"Industria de la Construcci&oacute;n","T":"_top","R":"","RT":"_blank"},"a583780":{"P":583531,"ID":583798,"C":583780,"O":"3","U":"http:\/\/www.masterresearchco.com\/sectoreducativo.html","N":"Sector Educativo","T":"_top","R":"","RT":"_blank"},"a583792":{"P":583531,"ID":583803,"C":583792,"O":"4","U":"http:\/\/www.masterresearchco.com\/telecomunicaciones.html","N":"Industria de Telecomunicaciones","T":"_top","R":"","RT":"_blank"},"a597172":{"P":583531,"ID":604940,"C":597172,"O":"5","U":"http:\/\/www.masterresearchco.com\/otrasindustrias.html","N":"Industria y Manufactura","T":"_top","R":"","RT":"_blank"},"a375221":{"P":293565,"ID":375222,"C":375221,"O":"5","U":"http:\/\/www.masterresearchco.com\/cotizador-en-linea.html","N":"Solicitud de cotizaci\u00f3n","T":"_top","R":"","RT":"_blank"},"a293568":{"P":293565,"ID":344534,"C":293568,"O":"6","U":"http:\/\/www.masterresearchco.com\/masternews.html","N":"Master  News","T":"_top","R":"","RT":"_blank"},"a375219":{"P":293565,"ID":375220,"C":375219,"O":"7","U":"http:\/\/www.masterresearchco.com\/contacto.html","N":"Contacto","T":"_top","R":"","RT":"_blank"}},alignment:"Horizontal",animate:0})});